<?php
$phone='账号';   // 账号
$pass='密码';  // 密码
$count=rand(15000,30000);// 随机生成8000-9999的数字  这里是步数
$bushu= file_get_contents("https://api.kit9.cn/api/xiaomi_sports/api.php?mobile=$phone&password=$pass&step=$count");


function handler($event, $context) {
    $output = array(
        "statusCode" => 200,
        "headers" => array(
            "Content-Type" => "application/json",
        ),
        "isBase64Encoded" => false,
        "body" => json_encode($event),
    );
    return $output;
}
?>